change promise to ready