updates snippet