added min-block-size to block-size fn.