remove recursive function in the proxy