check for X befor using its clipboard function