minor speedup in bounds updating