churn script complete with further improvement on the way