trying to make a first complete version of XML pocedure for wheat