added functions for setting and inserting fields