ready.function in ricerca