updating generation script