rescale - first attempt