refactoring question
accept answer