removed previous block logic