use MAX_SEARCH_DEPTH in copy