removed unnecessary dimension in threads
fixed bug when copying data back ...