adding flushing to map