genius refactor