bug fix for 1000 that happend to give a correct answer