buffer switching mapping