changed x stop method

changed x stop method