adding stop function
delete temp