remove unused average