updated for numchanges