Update Function

added function