sloving the stopped problem