found the bug, pre-incrementing vs. post-incrementing