prepare to switch offf