made bvh build deterministic