add stars statistical function