using own code for alignment scores