script to generate initial offsets