update y-wrapping