> For the complete documentation index, see [llms.txt](https://dev.init.capital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.init.capital/guides/basic-interaction/changing-position-mode.md).

# Changing Position Mode

Users can change their positions to another mode to increase the positions' health factors from better token factors.&#x20;

{% hint style="info" %}
Users may not always be able to change mode if the new mode debt ceiling in the target mode is reached or if the new mode does not support the current position's collaterals and borrows.
{% endhint %}

```solidity
// Example change mode function
function changeMode(uint256 posId, uint16 newMode) external {
    // 1. change position mode
    IInitCore(INIT_CORE).setPosMode(posId, newMode);
}
```
