added numchanges var