update, not tested in gromacs