better ns snippet