change pattern for tags