output to ../stat directory