take blocks outside the case/when