modify ellipse_eval method