update function is ready