function scope, closure and execute anonymous function immediately