worked on ellipse detection