converting csv to a table format