refactor dizzy