basic tracking function implemented