generating gam friendly result file