repeat unless get right answer; bug fixes