small improvement to get bounds