change loop count