modify weighted average to work with norms properly