MGLigature refactored