finish normalizer function