changes to test different optimisation methods