updated searchLibrary