update active logic