update for the logic