solved problem with class_eval