slight change in the isEqaul check