small change to serializer condition