rough radex function written...