new parameter for the resample factor