small edits to serializer