add running stopped func