buffer cache flush function added