adjust block logic