add nskip and ntuples functions