added ft trialfun for square track