get fields method