trenary operation added