update track computation for rigs. #2
update data structure. #2
bug correction. #2