add in some averageing