fixed outputting the content twice
fixing some outputs