use type base when comparing id attributes