gun code strategy