add labels to graphs