the int b = 0; was unnecessary