how many times is this same ternary expression going to happen?