delete beautiful soup for beautiful_soup and clean up code