Update function changed