missing last part of ternary operator