optimizing searchchildren