added in-line short r-blocks for mean and median