debug the optima of walk