subsample on step amplitude
updated
converted to package functionality