specify compartment before calling function.