return from update function