wrapped library in an anonymous function

wrapped library in an anonymous function