added search.[ch]