code example updates