patterns working