adds condition for ellipse