modify struct snippet.