remove last nested rows