minirefactoring