added return to multi xml function