added winding number