namd adjusted for better stability