added if block to compute highest rainfall quarter