change script according to proposal.