sketch out equality function
extend equality