define out of onReady