made generate stars more effecient