test update funtion