NO NO NO..
The loop says from 1 to 47...it should never reach 48...why is it going to 48
??????????????????????????????????????????