function evaluating letter frequencies ok