updated get_temp w/ z_out=NULL