compiles cleanly, added table template