fixed output for files