put formatHelper outside the class