update tags and rules