add remove nth node from end list