added line to clear the current device