remove trinary operator