containment in function