changed factor design script