remove unneeded XML elements