some tweaks to for loops, im using c99 why not use c99 initialization style for for loops heh