changes shape of data if necessary for action