add pattern to name