update worker to use updated normalize function correctly