give each field an offset when class is loaded