refactor get_clf