adds attribution for pattern