added 'fst' function