fixed a termary opperation