for molecular dynamics