trying to get 2d indices to work
working on adding support for for-loops in kernels