initial code for running on LQ ntuples