added mass() branch for objects, as getting mass from p4 gives different results