refactoring normalization method