update factories to ensure uniqueness of each factory