selection rectangle works