Added Method to convert array to fields