change AABB write order