-fake ternary function