student refactorings