output y to file
output y to file