updated generate with instructions