fixed ode solver

changed method to ode45