fix: change type of loops,speedup and between loops so its compatible wi...

...th changes in the nipy code