added accessors
added updateFn()