Logic for blocks combining
cleanup