changes initialize function