add a new pattern