fix incrementing logic