modifies the data to be used