power generated depends