moved the declaration of Frame into BufferManager