Mod diff_y, diff_x