update magic order