commit 8b - adding ternary