add change format function and test case