my implementation of empircal bayes rate4site works and gets very close results to actual rate4site