added fields attribute to data object