implement SetFormatter