update second trial of generate-parentheses