update change function