a little program for track allocating