build graph code and modifying badwords