updated generate command