add new normalization method and fix warrings