dynamic method refactoring and modifications