moving functionality to stop_seq