added cleaning and started line plot