removed a bad memcpy