rename method name of class