fix codesnippets