cloned the buffer so we don't end up overwriting our incoming buffer