changed implementation of performance averages graph