make better averaging
better averaging