changed table to horizontal def