add normalization loop