write out labels and probabiltiies