improves objects to be the same for queryWHierarchy