changes output format to easy post processement