deleted equals method from serializer because it wasn't semantically
correct.