modify magic bytes