fixed training and testing normalization