updated byte-tracking to be more accurate