remove block logic