modify snippet