added comments to equality