the construtor of bloc was taking loc.size() as num_chunk but should be 1 actually