moved definition of MyFormatter