add reference tracking pattern generator