todo rescale rt on median