update by fixing errors