remove unneeded blocks on select