removed updateBufferQueue.