support for visual mode