added tracking function