started rcsolver but need to develop the algorithm properly