solved more parenthesis problems with chords