stop() funciton added