moved cat_eval to controller