walk method.