removed struct emb from serializer functions, because it was not used there