reverted to memcpy because Jim apparently didn't do proper testing like he should have