getting functions to adversary