added function to insert file/buffer name