update end()