fixed serious mistakes in fm