finding a stoping point