Update function Patch 1