cleaning and saving only what I need to put inside timeline.php