v_ellipse_square function corrections