combine type and condition