switch to buffer