changed the way the library is used