update clean old block logic