Revert "avg"

This reverts commit f506dea97814e24268113cd2be87074bfcc89a7e.