having problems with the teriary symbol