testing refactored code