modified submit to run on TTreeFormula