refactoring with jered