changes to have well-typed disequalities