change point script
add change point code from Zak