input for grid generation