refactoring at 50%