merge with Cython