new looped/cython version