added option to generate