check input variables mismatched