fix
fix the memory copy, to be more effective