clean code in checking rename methods