change format of data