used pft outside of loop