(memcpy no longer needed)