added code and remember tmr to use gsl!!!!