clean up median and average graphs