adding power index related code.