update instance_eval to class_eval