preparing for stop functionality