tried to put rk4 in one kernel function. probably doesn't work yet