wrote and tested normalization