pattern scoring