new AABB functions and fixes