RBF first working version