moved stars generating function to include file