# How to update topology file after insert-molecules?

**URL:** https://gromacs.bioexcel.eu/t/how-to-update-topology-file-after-insert-molecules/2206
**Category:** User discussions
**Created:** [May 23, 2021, 1:30pm UTC](https://gromacs.bioexcel.eu/t/how-to-update-topology-file-after-insert-molecules/2206 "2021-05-23T13:30:10Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![lanselibai](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@lanselibai](https://gromacs.bioexcel.eu/u/lanselibai)
#### Post date: [May 23, 2021, 7:54pm UTC](https://gromacs.bioexcel.eu/t/how-to-update-topology-file-after-insert-molecules/2206/4 "2021-05-23T19:54:07Z")

</div>

I think I got the solution.

Add  
`#include "ligand.itp"`  
under  
`#include "amber14sb.ff/forcefield.itp"`

Add  
`#include "ligand.top"`  
before  
`#include "amber14sb.ff/tip3p.itp"`

Add  
`ligand 26`  
to the last line

Then, in the `ligand.top`, disable the sections of `[defaults], #include "ligand.itp", [molecules]`

---

_[View the full topic](https://gromacs.bioexcel.eu/t/how-to-update-topology-file-after-insert-molecules/2206)._
