fixing template to allow for content types