code to make starcat