add last line of ternary operator