working on cython for slowness