fixing L2norm creation