fixed loads of unmatched parentheses causing conditions to never trigger