added kth element of a list