add removeNthFromEnd