correctly reference schema fields