modify main tag rule