add averaging behaviour