optimize routine of gettrack