automatic shut-off function

//