use formatResult