change alternate buffer after switching