working with named tuples for htmltables