how to create magic protection