removed function IsEqual and replaced it by function Equals