added ellipse support to apply