added info on defining statelabels