pattern layout