add param check snippet.