add the power off function