updated rescale example to reflect bug fix