updating result