remove unnessecary copy