added def 'optimal'