add stars and fix a bug