added power measurement