added comparitive graph functionality