cleanup on template properties