refactored, now is class Helper