fixed the normalization process