added isRunning method