bug fix , forgot to return the result
save selected outcomes