the fprintf for tensile is at wrong position, changed to where it should be