rewrite cont_index function + start writing reduced_rad function