clean unnecessary template output