modify normalize method