refactored worksheet