prepare to make device ready work