configurational temperature calculation part is added