a new chunk merge logic