adding 'generateStr'