some error checking for labels