script to generate lists