fix spacing in resampling code