improved hydropower functions