combine type and table