fix output format. should be standard for both input files