update ready-fn