moved increments to given block for easier-to-read assertion