fixed: extra space in output file