updating app to add pattern