add weighted sq norm (tested)