functional simplification & refactoring