update active flag