added weighted to PC and WMD