while with running==true