updating method fix