changed to deviceready