formatting table for types