changed usePower from one based to zero based