add function for getting the rendered year