completing <> and nest for the added case 2