added normalizing logic
added normalization logic