update the maximum number of stars