algorithm now generator