z-shift sign was wrong