fix snippets 3 and 4 in README