changed twoopt, submitting