function snippet updated.