adding missing bracket to code example