debugging ellipse/circle problem, added check for calcin and r=0 in ellipses