outputs avg diff