change data from string to object and now display years