rescale doc improvement