some functions for tracks