fixed anonymous function declaration

uses changed to use