switched machines