remove logical operators