modify snippet toggle