made invocation of library a function