add method to convert data into more tableView-friendly format