no more double query on ready