eliminated sleep at end of stop() function