check for block lengths