fixed downwards loops
fiddling with cuda settings