refactoring and optimizing