modify magic head