bound check still failing due to unknown reasons