final formatting for table