add power off function