add argument to output results into files
implement step for range integers