removed unnecessary code from the STOP command