modify do and block snippet for my convenience