converting to xml works