make sure it exists before it goes to the template