update code for ready