add normalize(const) optimization, code by Boris Batkin