use score matrix in ap