function to generate all tracks