upgrade magic