better bounds detection