tidied up optimum strategy