fixes in updating