histbypft in separate file