added ready and notReady
added ready