simplify type resolution