more problems using optimisation