use Cython functions instead of builtin functions