finish all procedures