removed extra copy calls