needed for memcpy since no longer using string.h