put primitives into a closure object