updating snippet