improvements to selection, edges