stars function added