before_x, after_x and before_y and after_y