moved functions to helper class
report when the best was found