bug fixed for the in equality check