setFormatter improved and simplified
remove useless method setFormatter