fixed main MEDUSA analysis