refactor inner normalize