write soft clip; added debugging code
no effective changes