refactor block_with_statistics