new version to compute the forces