func that writes out a list of measures