changed BufferPool to LinkedHashMap