update snippet, query