added constructor equality function