add update of tail value in remove()