calc diff of bvh and x