added kth node from end