delete ready funtion