search empty improvement