added max wells
changed well sums