hide the unneeded blocks