exit control on X and Y