added function for getting an array of a single field