option of l1 or l2 normalization