messed up the order of the ifs in stopCommand