implemented normalization