changed to fields to interfacetype