remove last nth node