adding missing closing brackets