adding an override for equals