correct averaging