new branch for raw_tf and raw_tf_density