solved but optimization is bad, without the latter it works better
next optimization.... still twice worse than with out