now can automatically update for each category