problem with wiriting out the xtensil recursively