fixed loop decrementor, cause I'm stupid