only two types using serializer