getFields method