properly align chunk_size