took out line in resize function