fixing w.r.t. copying
removed debug