change data from string to object