adds a few more parentheses that have suddenly gone missing; seems all fixed now