removed unused variable isFinished