added back the small change in L.data, because the solver didnt work without it