some small changes to the format of the output of generate_variants