update definition on change