modify block snippet