implemented molecular motion based on temperature