updated result-clean script