altered __toString since it is used by php functions like array_intersect