Found ways for nomalization, not sure if helpful yet, correctly modified localnormalize method too