new logic for fixing MELODIA pecularities