first step in search/main.c