document the stop method