improvements on speed and mutex added
tracker class