added temperature stuff to torch