FIXED unmatched parentheses and wrong set of variable names