generate command works