fixed bug by removing toprettyprintxml