implemented normalizing