giving adversary access to all functions