added a stop function