improve box selection speed