added a lot of code so that repeat titles won't be the same