refactor_problems