you already initialized nbix to 0 - no need to do it again. if you don't use nbix outside the for loop, just initialize it here.