bug fix countingStars
small modifications