# Lock Districts

In the toolbar above the map, there is a locking tool.  The **lock** function in iRedistrict gives the user an option to lock some districts of an existing plan while continue to optimize for the unlocked districts.&#x20;

Click the locking tool and then click the district on the plan to lock these districts. Then click "run" to rerun redistricting. The new plans will preserve the locked districts and redraw other districts.

![](/files/-MJ031oMqHuJnrvZUOMn)

When locked, a district will visually change to a darker shade. To release the lock button, click on the lock icon again.

![](/files/-MJtCFv2yJtHxWuHNOfa)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zillion.gitbook.io/iredistrict/lock-and-run.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
