slight modification for xml