use existing method to calculate index within bounds