updated serializer for API