updated normalize