moves node star block into a template to make it easier to use in more than one spot