.generate() second argument is now optional