add semicolon ternary was the wrong wy around