finish longestparenttheses