suspect bolt while loop was wrong