complete ternary review

Reviewd the ternary statement