fixed bug @ copying data