add initial search logic