added option to set field value