add search depth parameterizing