removing trailing parentheses from class definitions