add equal method to ID