changed output filenames to be 1 offset