added function getReady
getReady method passing to main code