good sortino, better refactor