pattern now works