added function to parse field names