finish script with major bug

algorithm to calculate letters uses two different ways; need to settle
with only one way