updated the steps in ellipse and rectangle