hi dileep, instead of apply(apply1,[eq1,r1]); try writing apply (apply1, ['eq1, r1]); (i.e. put a single quote mark ' before eq1) does it now yield the same as apply1(eq1,r1); ?? hth robert dodier