remade mouseselection among other things