added labels to rank graph, fixed brackets issue