working, starting optimisation