add better temperature filtering and outliers discarding