update snippet 6