code for w norm in qcd norm estimate