remove comment part in templates