implemented the 'power over' code.