move raw copy code