update winding_number