[Process] correct return statement for anonymous function
[Process] remove unused variable