removing redundant parenthesis