ensure that works in visual mode