remove redundant logical parenthesis