created copy of dsearch.c