adapt magic to LE