trying to capture, created inverted function to calculate index, lack of changing the bead in the pit