star rating integer loop