tracker class working correctly