modify c snippet