So extensive were the rewrites that Alan Dean Foster decided to rewrite the entire novelization after submitting it to his publisher , because the compiled shooting script was very different from the one he was given beforehand .