update tables and formatting