export same format as input