change format of result. add update mode