update tail