change final function at finish