added the averaging function info