map f5 for buffer choosing