add equal and compare