using avg l2 norm