updates result