[greg] removed all ternary operators