rename update function