refactor:code diet