change from respond_to to class_eval