thanks! when i allocate a new array, i use an "MARGIN-RIGHT: 0px">

int i, j, k, *m1, *m2, *tid, *temp, *p, *c1, *c2, step, base;

int a1[90], pos, num, *chain1, *chain2, *chain, **m1pos, **m2pos, index;

int *motif1, *motif2, motif1_size, motif2_size;

mqbStructure t;

m1 = final_mqb.motif1[final_mqb.num];

m2 = final_mqb.motif2[final_mqb.num];

p = final_mqb.protein[final_mqb.num];

c1 = final_mqb.m1_chain[final_mqb.num];

c2 = final_mqb.m2_chain[final_mqb.num];

num = final_mqb.cross_num[final_mqb.num];

final_mqb.m1pos[final_mqb.num].pos = new int*[num];

final_mqb.m2pos[final_mqb.num].pos = new int*[num];

m1pos = final_mqb.m1pos[final_mqb.num].pos;

m2pos = final_mqb.m2pos[final_mqb.num].pos;

//got to do these coz even is using chain 1 and chain 2 of mqb_result

//odd is using chain 2 and chain 1 of mqb_result

for (i=0; i<rtidset_size; i++) {//naive implementation! for each tid of mqb_result

if (rtidset%2==0) {//even number

index = rtidset/2;//chain 1 of cross mqb is different f

motif1 = mqb_result[index].side1;

motif2 = mqb_result[index].side2;

motif1_size = mqb_result[index].side1_num;

motif2_size = mqb_result[index].side2_num;

}

else {//odd number

index = (rtidset-1)/2;

motif1 = mqb_result[index].side2;

motif2 = mqb_result[index].side1;

motif1_size = mqb_result[index].side2_num;

motif2_size = mqb_result[index].side1_num;

}

t = mqb_result[index];//t is the closedpattern in the chain

chain = Motif.protein[p].chain[c1];

m1pos = new int [m1[0]+1];//allocate new array