normalize to @id and @type