deleted extra pattern stuff