adding isRunning