incrementing levelcount