get rid of unnecessary parentheses and dots