added clearFinished method