added get fields to document