update snippet