add gainloss migration