add isFinished function