update doc and name anonymous fn