bug fix

bug fix about time couunt. and add power control function.