added getOutputFields method