encapsulate a field