revise 'ts' snippet