remove debug info from template