remove unneeded xml