added import tracpy in calcs