adding conparation only for the value of the object, and not to the object itself