constructing table now works