fix parentheses and dynamics