added diffX and diffY