wrap optimiser in big function. correct
Merge branch 'master' of https://github.com/Gunners101/thss