change get.ranked.hospital.each.state() function